package com.lin.blog.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lin.blog.entity.Article;
import com.lin.blog.vo.ArticleCategoryTagsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lin
 * @since 2020-03-08
 */
public interface ArticleCategoryTagsMapper extends BaseMapper<ArticleCategoryTagsVO> {



    /**
     *  通过id查询文章
     * @param id
     * @return
     */
    public ArticleCategoryTagsVO getArticleCategoryTagsVOById(Long id);


    /**
     * 获取ArticleCategoryTagsVO
     * @param map
     * @return
     */
    public  List<ArticleCategoryTagsVO> listArticleCategoryTagsVO(@Param("map") Map map);



    /**
     * 分页获取ArticleCategoryTagsVO
     * @param page
     * @param map
     * @return
     */
    public Page<ArticleCategoryTagsVO> listArticleCategoryTagsVOPage(Page<ArticleCategoryTagsVO> page,@Param("map") Map map);
}
